package com.corpgovernment.common.config;

import com.ctrip.corp.obt.generic.utils.EnvironmentHolder;

/**
 * @author zl.cui
 * @date 2024/3/7
 */
public class Config {
    private static final String PREFIX = "supplier.";

    private static final InterfaceConfig DEFAULT_CONFIG = k -> EnvironmentHolder.getProperty(PREFIX + k);

    private Config() {
    }

    /**
     * Returns a default implementation of the registry config backed by system properties.
     */
    public static InterfaceConfig defaultConfig() {
        return DEFAULT_CONFIG;
    }
}
